package com.most.api;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@FeignClient(value = "most-user",fallbackFactory = UserClientFallbackFactory.class)
public interface UserClient {
    @GetMapping("sysUser/getUser")
    public String getUser();

    @GetMapping("sysUser/findOneByUserName")
    public UserVO findOneByUserName(@RequestParam("username") String username);

    @GetMapping("sysUser/getPermissionsById")
    public List<String> getPermissionsById(Long id);
}